package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 店铺充值提现表
 * </p>
 *
 * @author
 * @since 2023-06-06
 */
@Data
@TableName("h2_shop_recharge_withdrawal")
public class H2ShopRechargeWithdrawal implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 类型 1：充值，2：提现
     */
    private String type;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 实际金额
     */
    private BigDecimal actualArrivalAmount;

    /**
     * 支付方式
     */
    private String payMethod;

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 账号
     */
    private String accountNumber;

    /**
     * 账号所属行
     */
    private String accountName;

    /**
     * 账户用户名
     */
    private String accountUserName;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 审核时间
     */
    private LocalDateTime auditDate;

    /**
     * 审核人
     */
    private String auditUserName;

    /**
     * 状态 0：待审核，1：审核通过，-1：审核不通过
     */
    private String status;

    /**
     * 备注
     */
    private String description;


    /**
     * 审核备注
     */
    private String auditDesc;

    /**
     * 取消备注
     */
    private String cancelDesc;

    /**
     * 取消时间
     */
    private LocalDateTime cancelDate;

    /**
     * 凭证图片
     */
    private String voucherImg;

    @Schema(description = "通道id")
    @TableField("channel_id")
    private Integer channelId;

    @Schema(description = "变更前金额")
    private BigDecimal amountBeforeChange;

    @Schema(description = "是否首次充值 0：否，1：是")
    private Integer firstRecharge;
}
